Method, apparatus, electronic device and storage medium for controlling brightness of screen

ABSTRACT

A method for controlling a brightness of a screen, includes: detecting whether a photosensitive sensor is blocked when a change in light intensity is detected; and maintaining a current brightness of the screen when it is detected that the photosensitive sensor is blocked.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims priority to Chinese PatentApplication No. 201810847098.2, filed Jul. 27, 2018, the entire contentsof which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates generally to the field of screen controltechnologies, and in particular, to a method, apparatus, electronicdevice, and storage medium for controlling a brightness of a screen.

BACKGROUND

In the related art, an electronic device, such as a mobile phone and atablet, can automatically adjust the brightness of its screen accordingto a change in light brightness of the environment in which theelectronic device is located. However, in the case where the lightbrightness of the environment does not change, if the user holds theelectronic device horizontally, that is, the user holds opposite ends ofthe electronic device with hands where one end of the electronic deviceis provided with a photosensitive sensor, the photosensitive sensor ofthe electronic device may be blocked by a finger or the palm of theuser, then the photosensitive sensor may misjudge that the light of thecurrent environment changes, which triggers the automatic adjustment ofthe brightness of the screen of the electronic device to adapt thebrightness of the screen to the current environment.

Therefore, in the related art, the screen brightness adjustment maystill proceed under the condition that the ambient light intensity doesnot change, and the brightness mis-adjustment is easy to occur.

SUMMARY

According to a first aspect of the embodiments of the presentdisclosure, there is provided a method for controlling a brightness of ascreen, including: detecting whether a photosensitive sensor is blockedwhen a change in light intensity is detected; and maintaining a currentbrightness of the screen when it is detected that the photosensitivesensor is blocked.

According to a second aspect of the embodiments of the presentdisclosure, there is provided an electronic device, including: aprocessor; and a memory storing instructions executable by theprocessor. The processor is configured to detect whether aphotosensitive sensor is blocked when a change in light intensity isdetected; and maintain a current brightness of the screen when it isdetected that the photosensitive sensor is blocked.

According to a third aspect of the embodiments of the presentdisclosure, there is provided a computer-readable storage medium havingstored thereon instructions that, when executed by a processor of adevice, cause the device to perform a method for controlling abrightness of a screen, including: detecting whether a photosensitivesensor is blocked when a change in light intensity is detected; andmaintaining a current brightness of the screen when it is detected thatthe photosensitive sensor is blocked.

It is to be understood that both the foregoing general description andthe following detailed description are exemplary and explanatory onlyand are not restrictive of the disclosure, as claimed.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of a method for controlling a brightness of ascreen according to an exemplary embodiment of the present disclosure.

FIG. 2 is a flowchart illustrating a step of detecting whether aphotosensitive sensor is blocked according to an exemplary embodiment ofthe present disclosure.

FIG. 3 is a schematic diagram showing a screen of a terminal device in aportrait state according to an exemplary embodiment of the presentdisclosure.

FIG. 4 is a schematic diagram showing a screen of a terminal device in alandscape state according to an exemplary embodiment of the presentdisclosure.

FIG. 5 is a schematic diagram of a first area and a second area of ascreen according to an exemplary embodiment of the present disclosure.

FIG. 6 is a schematic diagram of a first area and another second area ofa screen according to an exemplary embodiment of the present disclosure.

FIG. 7 is a schematic diagram showing a user's hand occluding aphotosensitive sensor according to an exemplary embodiment of thepresent disclosure.

FIG. 8 is a flowchart illustrating a step of detecting whether aphotosensitive sensor is blocked according to an exemplary embodiment ofthe present disclosure.

FIG. 9 is a flowchart illustrating a step of detecting whether aphotosensitive sensor is blocked according to another exemplaryembodiment of the present disclosure.

FIG. 10 is a schematic diagram of an interface when a terminal devicedisplays a first control and a second control according to an exemplaryembodiment of the present disclosure.

FIG. 11 is a block diagram of an electronic device according to anexemplary embodiment of the present disclosure.

DETAILED DESCRIPTION

Reference will now be made in detail to exemplary embodiments, examplesof which are illustrated in the accompanying drawings. The followingdescription refers to the accompanying drawings in which the samenumbers in different drawings represent the same or similar elementsunless otherwise represented. The implementations set forth in thefollowing description of exemplary embodiments do not represent allimplementations consistent with the disclosure. Instead, they are merelyexamples of apparatuses and methods consistent with aspects related tothe disclosure as recited in the appended claims.

The terms used in the present disclosure only tend to depict specificembodiments, rather than restricting the present disclosure. Unless theexceptional case in which the context clearly gives supports, thesingular forms “a”, “an”, and “the” used in the present disclosure andaccompany claims are intended to include the plural forms. It shouldalso be appreciated that the expression “and/or” used herein indicatesincluding any and all possible combinations of one or more of theassociated listed items.

It should be understood, although terms first, second, third and thelike are used in the present disclosure to depict various information,such information is not restricted by these terms. These terms are onlyused to distinguish information of the same type from each other. Forexample, without departing from the scope of the present disclosure, thefirst information may also be referred to as the second information.Similarly, the second information may also be referred to as the firstinformation. Depending on context, the word “if” used herein may beexplained to “when” or “upon” or “in response to determining . . . ”.

FIG. 1 is a flowchart of a method for controlling a brightness of ascreen according to an exemplary embodiment of the present disclosure.As shown in FIG. 1, the method may be used in a terminal device, andincludes the following steps.

In step 101, when a change in light intensity is detected, it isdetected whether a photosensitive sensor of the terminal device isblocked.

In step 102, current brightness of the screen is maintained when it isdetected that the photosensitive sensor is blocked.

The light intensity may be detected by the photosensitive sensor of theterminal device. When an electrical signal corresponding to the currentlight intensity detected by the photosensitive sensor is different froman electrical signal corresponding to the light intensity detected lasttime, a change of the light intensity may be detected.

The change in the light intensity detected by the photosensitive sensoris usually caused by a change in the actual light intensity of theenvironment or the occlusion of the photosensitive sensor. In order todetermine the cause of the change in the detected light intensity so asto avoid mis-adjusting the brightness in the case where the intensity ofthe ambient light does not change, in the step 101, when it is detectedthat the light intensity changes, it is further detected whether thephotosensitive sensor is blocked.

Therefore, when the change of the light intensity is detected, thepresent disclosure firstly detects whether the photosensitive sensor ofthe terminal device is blocked, and then determines whether it isnecessary to adjust the brightness of the screen according to thedetection result, rather than directly adjusting the brightness of thescreen, thereby effectively avoiding adjusting the brightness of thescreen due to the occlusion of the photosensitive sensor in the casewhere the ambient light intensity does not change; and it isadvantageous to prevent the brightness from being mis-adjusted and theenergy loss caused by the mis-adjustment, and to improve accuracy ofcontrol of the brightness of the screen. Moreover, even if the usergrips the terminal device horizontally and blocks the photosensitivesensor, the screen maintains the original brightness, instead ofbecoming dark, thereby optimizing the user experience.

FIG. 2 is a flowchart illustrating a step of detecting whether aphotosensitive sensor is blocked according to an exemplary embodiment ofthe present disclosure. As shown in FIG. 2, the step of detectingwhether the photosensitive sensor is blocked includes the followingsteps.

In step 101 a, it is detected whether the screen is in a landscapestate.

In step 101 b, it is detected whether a touch operation is performed ona first area and a second area of the screen. The first area is adjacentto the photosensitive sensor, and the second area is an area on thescreen except the first area.

In step 101 c, when the screen is in the landscape state and the touchoperation is performed on the first area and the second area, it isdetermined that the photosensitive sensor is blocked.

In the landscape state, when the user touches the first area adjacent tothe photosensitive sensor and the second area except the first area inthe touch screen, the hand for touching the first area generally spansabove the photosensitive sensor and falls on the first area, therebyblocking the photosensitive sensor, which causes the intensity of thelight detected by the photosensitive sensor to be weakened. Therefore,the present disclosure determines whether the photosensitive sensor isblocked by detecting whether the screen is in a landscape state, andwhether the touch operation is performed on the first area and thesecond area, thereby improving the detection accuracy of the occlusionof the photosensitive sensor, and improving the accuracy of control ofthe brightness of the screen; and, in the detection process, it issufficient only to apply the gravity sensor and the touch sensor,therefore the detection is easy to implement and the detection processis simple, which is beneficial to improve the detection efficiency.

In this embodiment, the order of the step 101 a and the step 10 b is notlimited.

In the step 101 a, the landscape state of the screen may be detected bythe gravity sensor of the terminal device. FIG. 3 is a schematic diagramshowing a screen of a terminal device in a portrait state according toan exemplary embodiment of the present disclosure; and FIG. 4 is aschematic diagram showing a screen of a terminal device in a landscapestate according to an exemplary embodiment of the present disclosure.

In the step 101 b, the touch operation of the first area and the secondarea may be detected by the touch sensor of the terminal device, such asa touch screen of the terminal device. In order to determine whether thetouch operation occurs in the first area or the second area, the firstarea and the second area of the screen may be pre-divided, e.g., by thedeveloper in the development stage, and coordinates of the first areaand the second area are saved in the terminal device.

FIG. 5 is a schematic diagram of a first area and a second area of ascreen according to an exemplary embodiment of the present disclosure.As shown in FIG. 5, the screen includes a photosensitive sensor A, afirst area B1 represented by a dotted frame, and a second area B2 exceptthe dotted frame. In other embodiments, the second area may be a portionof other area than the first area and separated from the first area, asshown in FIG. 6. FIG. 6 is a schematic diagram showing a first area C1and another second area C2 of the screen according to an exemplaryembodiment of the present disclosure, wherein the first area C1 isrepresented a first dotted frame, and the second area C2 is representedby a second dotted frame.

In an embodiment, in order to improve the detection accuracy of thetouch operation and the accuracy of the screen brightness adjustment, inthe step 101 c (FIG. 2), before determining that the photosensitivesensor is blocked, the method further includes the following steps:detecting report rates of the touch operation for the first area and thesecond area; comparing the report rate of the first area is comparedwith a preset first report threshold, and the report rate of the secondarea with a preset second report threshold; and determining whether thephotosensitive sensor is blocked according to the comparison results.

In this embodiment, the report rate may be detected by the touch sensorof the terminal device, such as a touch screen of the terminal device.The first report threshold and the second report threshold may bepreset, e.g., by a developer during a development phase, or may be setby a user according to usage. The first report threshold may be equal toor approximately equal to the second report threshold such that, forexample, a difference between the first report threshold and the secondreport threshold being less than 1. The difference being less than 1 isonly an example. In other embodiments, other reasonable values may alsobe taken, and the value may be obtained by triggering a correspondinginstruction when clicking controls displayed in the first area and thesecond area of the screen by fingers of both hands of the user whileinteracting through the screen.

In an embodiment, when the comparison result is: the report rate of thefirst area is greater than or equal to the first report threshold, andthe report rate of the second area is greater than or equal to thesecond report threshold, it is determined that the photosensitive sensoris blocked.

In an embodiment, in the landscape state, even if the touch operation isnot detected in the first area and/or the second area, the user mayblock the photosensitive sensor by hands when using the terminal device.For example, when the user holds the terminal device to watch the videowith both hands or one hand, the hand near the first area may block thephotosensitive sensor, as shown in FIG. 7. FIG. 7 is a schematic diagramillustrating that the user's hand blocks the photosensitive sensoraccording to an exemplary embodiment of the present disclosure.Therefore, in order to realize the detection of whether thephotosensitive sensor is blocked in this case, so as to further improvethe accuracy of adjusting the brightness of the screen, the step ofdetecting whether the photosensitive sensor is blocked may furtherinclude the following steps, as shown in FIG. 8, which is a flowchartillustrating a step of detecting whether the photosensitive sensor isblocked according to an exemplary embodiment of the present disclosure.

In step 101 d: when the screen is in the landscape state and there is notouch operation on the first area and/or the second area, the distancesensor detects whether there is an object within a preset distancethreshold; wherein the distance sensor is disposed adjacent to thephotosensitive sensor.

In step 101 f: it is determined whether the photosensitive sensor isblocked according to the detection result.

In an embodiment, in the portrait state, the phenomenon of blocking thephotosensitive sensor by the hand may also occur during use of theterminal device by the user. In order to also detect whether thephotosensitive sensor is blocked in the portrait mode, and to eliminatethe situation in which the distance sensor detects the object within thepreset distance threshold due to the close contact with the earpiece(i.e., in this case, it is not regarded as the photosensitive sensorbeing blocked), the control accuracy of the brightness of the screen isfurther improved. As shown in FIG. 8, the step of detecting whether thephotosensitive sensor is blocked may further include the followingsteps.

In step 101 e: when the screen is not in the landscape mode (i.e., in aportrait state), it is detected whether a call application is running.

When the call application is running, a result that the photosensitivesensor is unblocked is outputted.

When the call application is not running, the distance sensor detectswhether there is an object within a preset distance threshold.

In step 101 f: it is determined whether the photosensitive sensor isblocked according to the detection result.

In the step 101 d or the step 101 e, in the step of determining whetherthe photosensitive sensor is blocked according to the detection result,the detection result includes the following two situations. In the firstsituation, the distance sensor detects that there is the object existingwithin the distance threshold; and in the second situation, the distancesensor does not detect the presence of the object within the distancethreshold. Under the first detection result, it is determined that thephotosensitive sensor is blocked; and under the second detection result,it is determined that the photosensitive sensor is not blocked.

In the embodiment, the distance sensor is disposed adjacent to thephotosensitive sensor, and if there is an object being too close to thedistance sensor, i.e., the distance sensor detects the existence of anobject within the distance threshold, the photosensitive sensor islikely blocked. Therefore, whether the photosensitive sensor is blockedmay be determined by the detection result of the distance sensor withinthe distance threshold. The distance threshold may be acquired by thedeveloper according to experiments, and the specific acquisition mannermay be obtained by combining the present disclosure with the relatedart, which is not elaborated herein.

FIG. 9 is a flowchart illustrating a step of detecting whether thephotosensitive sensor is blocked according to another exemplaryembodiment of the present disclosure. As shown in FIG. 9, the step ofdetecting whether the photosensitive sensor is blocked includes thefollowing steps.

In step 101 c 1′, it is detected whether the screen is in a landscapestate.

In step 101 c 2′, the distance sensor detects whether an object existswithin a preset distance threshold. The distance sensor is disposedadjacent to the photosensitive sensor.

In step 101 c 3′, it is determined whether the photosensitive sensor isblocked based on the detection result.

In the embodiments shown in the steps 101 c 1′ to 101 c 3′, for theunderstanding of the landscape state and the distance threshold,reference may be made to the foregoing description of the landscapestate and the distance threshold, and details are not described herein.

The step 101 c 3′ may include the following steps.

When it is detected that the screen is in the landscape state and thedistance sensor detects an object within the preset distance threshold,it is determined that the photosensitive sensor is blocked.

When it is detected that the screen is not in the landscape state,and/or the distance sensor does not detect an object within the presetdistance threshold, it is determined that the photosensitive sensor isunblocked.

Thereby, by detecting whether the screen is in the landscape state anddetecting whether there is an object within the preset distancethreshold by the distance sensor, and then determining whether thephotosensitive sensor is blocked based on the detection results, thedetection step is simplified. Furthermore, the distance sensor and thephotosensitive sensor are disposed adjacently, and as long as the objectis detected within the preset distance threshold by the distance sensorin the landscape state (to exclude the condition that the distancesensor detects the object within the preset distance threshold due tothe close contact with the earpiece), the object may block thephotosensitive sensor, and when no object is detected within the presetdistance threshold, there is no blocking the photosensitive sensor, thedetection accuracy of the photosensitive sensor being blocked or not canbe ensured, the control accuracy of the brightness of the screen isimproved, and the user experience is optimized.

In an embodiment, based on any of the foregoing embodiments, the methodfor controlling a brightness of a screen of the present disclosure mayfurther include: when it is detected that the photosensitive sensor isnot blocked, the brightness of the screen is adjusted according to acurrent light intensity parameter.

In the embodiment, adjusting the brightness of the screen according tothe current light intensity parameter may be implemented with atraditional method known from the related art, and details are notdescribed herein.

Therefore, in the present disclosure, by adjusting the brightness of thescreen according to the current light intensity parameter when thephotosensitive sensor is not blocked, the brightness of the screen canbe adjusted properly so as to adapt to the current use environment.

In an embodiment, before adjusting the brightness of the screenaccording to the current light intensity parameter, the following stepsare further included: a first control and a second control are displayedon a current interface of the screen, wherein the first control is usedto trigger an event of automatically adjusting the brightness of thescreen, and the second control is used to trigger an event of cancelingthe automatic adjustment of the brightness of the screen; it isdetermined, according to the currently triggered control, whether toadjust the brightness of the screen according to the current lightintensity parameter.

The above operation is performed when it is detected that thephotosensitive sensor is unblocked.

FIG. 10 is a schematic diagram of an interface when the terminal devicedisplays the first control and the second control according to anexemplary embodiment of the present disclosure. As shown in FIG. 10, thefirst control 1001 and the second control 1002 may be configured in apop-up window, then when it is detected that the photosensitive sensoris not blocked, the pop-up window pops up. The pop-up window displaysthe text content, e.g., “The screen brightness auto-adjustment functionis started after 5 s”, the first control 1001, and the second control1002. The display content of the first control 1001 may be: “Confirm”,and the display content of the second control 1002 may be: “Cancel”. Inother embodiments, instead of displaying the pop-up window, the content“Turn on the screen brightness auto-adjustment” may be displayeddirectly in the first control 1001, and the content “Cancel the screenbrightness auto-adjustment” is displayed in the second control 1002.Thus, the user can clearly know the functions of the first control 1001and the second control 1002 so as to trigger the desired control.

In the embodiment, when the user clicks on the first control 1001 totrigger an event of automatically adjusting the brightness of thescreen, the system of the terminal device adjusts the brightness of thescreen according to the current light intensity parameter detected bythe photosensitive sensor. When the user clicks on the second control1002 to trigger an event of cancelling the automatic adjustment of thebrightness of the screen, the system of the terminal device does notperform the operation of adjusting the brightness of the screen, butmaintains the current brightness to meet the current usage requirementsof the user.

In the present disclosure, by displaying the controls for controllingthe automatic adjustment of the brightness of the screen to the userbefore adjusting the brightness of the screen according to the currentlight intensity parameter, the user can determine whether to adjust thebrightness of the screen according to the needs of the user, which isbeneficial to further optimize the user experience.

In an embodiment, based on any of the foregoing embodiments, when it isdetected or determined that the photosensitive sensor is blocked, themethod for adjusting the brightness of the screen of the presentdisclosure may further include the following step: a first adjustmentthreshold is updated to a second adjustment threshold, where the secondadjustment threshold is greater than the first adjustment threshold, andthe first adjustment threshold or the second adjustment threshold isused to trigg an event of automatic adjustment of brightness of thescreen.

The first adjustment threshold and the second adjustment thresholdcorrespond to a degree of change of the light intensity detected by thephotosensitive sensor. For example, assuming that the light intensitydetected by the photosensitive sensor last time is a, and the lightintensity detected this time is b, then only if an absolute value of adifference between b and a is greater than or equal to the firstadjustment threshold or the second adjustment threshold, the event ofautomatically adjusting the brightness of the screen is triggered.

Thus, in the embodiment, when the photosensitive sensor is occluded, byupdating the adjustment threshold for triggering the event ofautomatically adjusting the brightness of the screen, the adjustmentthreshold is increased, thereby facilitating further preventing themis-adjustment of brightness of the screen when the ambient lightintensity does not change while the photosensitive sensor is occluded.

Corresponding to the foregoing embodiments of the method for controllingthe brightness of the screen, the present disclosure further provides anapparatus for controlling a brightness of a screen, the apparatusincludes: a detecting module and a brightness control module.

The detecting module is configured to detect whether a photosensitivesensor is blocked when a change in the light intensity is detected.

The brightness control module is configured to maintain currentbrightness of the screen when the photosensitive sensor is blocked.

In this embodiment, the detecting module includes: a light intensitydetecting submodule, a landscape detecting submodule, a touch detectingsubmodule, and a first determining submodule.

The light intensity detecting submodule is configured to detect whetherthe light intensity changes.

The landscape detecting submodule is configured to detect whether thescreen is in a landscape state when the light intensity changes.

The touch detecting submodule is configured to detect whether a touchoperation is performed on a first area and a second area of the screenwhen the light intensity changes or when the screen is in the landscapestate. The first area is adjacent to the photosensitive sensor, and thesecond area is another area in the screen except the first area.

The first determining submodule is configured to: when the screen is inthe landscape state, and the touch operation is performed on the firstarea and the second area, determine that the photosensitive sensor isblocked.

In an embodiment, the first determining submodule includes: a reportdetecting submodule, a report comparing submodule, and a resultdetermination submodule.

The report detecting submodule is configured to detect report rates ofthe touch operation for the first area and the second area when thescreen is in the landscape state and the touch operation is performed inthe first area and the second area.

The report comparing submodule is configured to compare the report rateof the first area with a preset first report threshold, and compare thereport rate of the second area with a preset second report threshold.

The result determining submodule is configured to determine whether thephotosensitive sensor is blocked based on the comparison results.

In another embodiment, the first determining submodule may be replacedby another scheme, that is, the new first determining submoduleincludes: a first distance detecting submodule, and a result determiningsubmodule.

The first distance detecting submodule is configured to: when the screenis in the landscape state, and the touch operation is performed on thefirst area and the second area, the distance sensor detects whetherthere is an object within the preset distance threshold.

The result determining submodule is configured to determine whether thephotosensitive sensor is blocked based on the detection result.

In an embodiment, the detecting module may further include: a seconddistance detecting submodule, and a second determining submodule.

The second distance detecting submodule is configured to: when thescreen is in the landscape state, and the first area and/or the secondarea have no touch operation, the distance sensor detects whether thereis an object within the preset distance threshold: wherein the distancesensor is disposed adjacent to the photosensitive sensor.

The second determining submodule is configured to determine whether thephotosensitive sensor is blocked according to the detection result ofthe second distance detecting submodule.

In an embodiment, the detecting module may further include: a calldetecting submodule, a first result output submodule, a third distancedetecting submodule, and a second result output submodule.

The call detecting submodule is configured to detect whether a callapplication is running when the screen is not in the landscape state(i.e., in a portrait state).

The first result output submodule is configured to output a result thatthe photosensitive sensor is unblocked when the call application isrunning.

The third distance detecting submodule is configured to: when thecalling application is not in operation, detect whether an object existsin a preset distance threshold by using the distance sensor.

The second result output submodule is configured to determine whetherthe photosensitive sensor is blocked according to the detection result.In other embodiments, the detecting module may be replaced with otherschemes, that is, the new detecting module includes: a light intensitydetecting submodule, a landscape detecting submodule, a distancedetecting submodule, and a determining submodule.

The light intensity detecting submodule is configured to detect whetherthe light intensity changes.

The landscape detecting submodule is configured to detect whether thescreen is in the landscape state when the light intensity changes.

The distance detecting submodule is configured to detect whether anobject exists within a preset distance threshold by the distance sensorwhen the light intensity changes or when the screen is in the landscapestate. The distance sensor is disposed adjacent to the photosensitivesensor.

The determining submodule is configured to determine whether thephotosensitive sensor is blocked according to the detection result.

Accordingly, based on the new detecting module, the determinationsubmodule is configured to: determine that the photosensitive sensor isblocked when the screen is in the landscape state and detect, by thedistance sensor, an object within the preset distance threshold, anddetermine that the photosensitive sensor is unblocked when the screen isnot in the landscape state, and/or the distance sensor does not detectan object within the preset distance threshold.

In an embodiment, based on any of the foregoing embodiments, thebrightness control module is further configured to: adjust thebrightness of the screen according to a current light intensityparameter when the photosensitive sensor is unblocked.

In an embodiment, the apparatus further includes: a control displaymodule, and an adjustment determining module.

The control display module is configured to: display a first control anda second control on a current interface of the screen before thebrightness control module adjusts the brightness of the screen; whereinthe first control is used to trigger an event of automatically adjustingthe brightness of the screen, and the second control is used to triggeran event that cancels the automatic adjustment of the brightness of thescreen.

The adjustment determining module is configured to: determine whether toadjust the brightness of the screen according to the current lightintensity parameter according to the currently triggered control.

The adjustment determining module outputs an instruction for adjustingthe brightness of the screen to the brightness control module, so thatthe brightness control module maintains or adjusts the currentbrightness of the screen according to the received instruction.

In an embodiment, based on any of the foregoing apparatus, the apparatusfurther includes: a threshold update module.

The threshold update module is configured to: when the photosensitivesensor is blocked, update a first adjustment threshold to a secondadjustment threshold, wherein the second adjustment threshold is greaterthan the first adjustment threshold, and the first adjustment thresholdor the second adjustment threshold is used to trigger an event ofautomatically adjusting the brightness of the screen.

Since the modules in the apparatus of the present disclosure correspondto the foregoing method for controlling the brightness of the screen,reference may be made to the foregoing method for details.

FIG. 11 is a block diagram of an electronic device 500 according to anexemplary embodiment of the present disclosure. As shown in FIG. 11, theelectronic device 500 may be a computer, a mobile phone, a digitalbroadcast terminal, a messaging apparatus, a gaming console, a tablet, amedical apparatus, exercise equipment, a personal digital assistant, andother terminal devices.

Referring to FIG. 11, the electronic device 500 may include one or moreof the following components: a processing component 501, a memory 502, apower component 503, a multimedia component 504, an audio component 505,an input/output (I/O) interface 506, a sensor component 507, and acommunication component 508.

The processing component 501 typically controls overall operations ofthe electronic device 500, such as the operations associated withdisplay, telephone calls, data communications, camera operations, andrecording operations. The processing component 501 may include one ormore processors 509 to execute instructions to perform all or part ofthe steps in the above described methods. Moreover, the processingcomponent 501 may include one or more modules which facilitate theinteraction between the processing component 501 and other components.For instance, the processing component 501 may include a multimediamodule to facilitate the interaction between the multimedia component504 and the processing component 501.

The memory 502 is configured to store various types of data to supportthe operation of the electronic device 500. Examples of such datainclude instructions for any applications or methods operated on theelectronic device 500, contact data, phonebook data, messages, pictures,video, etc. The memory 502 may be implemented using any type of volatileor non-volatile memory apparatuses, or a combination thereof, such as astatic random access memory (SRAM), an electrically erasableprogrammable read-only memory (EEPROM), an erasable programmableread-only memory (EPROM), a programmable read-only memory (PROM), aread-only memory (ROM), a magnetic memory, a flash memory, a magnetic oroptical disk.

The power component 503 provides power to various components of theelectronic device 500. The power component 503 may include a powermanagement system, one or more power sources, and any other componentsassociated with the generation, management, and distribution of power inthe electronic device 500.

The multimedia component 504 includes a screen providing an outputinterface between the electronic device 500 and the user. In someembodiments, the screen may include a touch panel (TP), and the screenmay be implemented as a touch screen to receive input signals from theuser. The touch panel includes one or more touch sensors to sensetouches, swipes, and gestures on the touch panel. The touch sensors maynot only sense a boundary of a touch or swipe action, but also sense aperiod of time and a pressure associated with the touch or swipe action.In some embodiments, the multimedia component 504 includes a frontcamera and/or a rear camera. The front camera and the rear camera mayreceive an external multimedia datum while the electronic device 500 isin an operation mode, such as a photographing mode or a video mode. Eachof the front camera and the rear camera may be a fixed optical lenssystem or have focus and optical zoom capability.

The audio component 505 is configured to output and/or input audiosignals. For example, the audio component 505 includes a microphone(MIC) configured to receive an external audio signal when the electronicdevice 500 is in an operation mode, such as a call mode, a recordingmode, and a voice recognition mode. The received audio signal may befurther stored in the memory 502 or transmitted via the communicationcomponent 508. In some embodiments, the audio component 505 furtherincludes a speaker to output audio signals.

The I/O interface 502 provides an interface between the processingcomponent 501 and peripheral interface modules, such as a keyboard, aclick wheel, buttons, and the like. The buttons may include, but are notlimited to, a home button, a volume button, a starting button, and alocking button.

The sensor component 507 includes one or more sensors to provide statusassessments of various aspects of the electronic device 500. Forinstance, the sensor component 507 may detect an open/closed status ofthe electronic device 500, relative positioning of components, e.g., thedisplay and the keypad, of the electronic device 500, a change inposition of the electronic device 500 or a component of the electronicdevice 500, a presence or absence of user contact with the electronicdevice 500, an orientation or an acceleration/deceleration of theelectronic device 500, and a change in temperature of the electronicdevice 500. The sensor component 507 may include a proximity sensorconfigured to detect the presence of nearby objects without any physicalcontact. The sensor component 507 may also include a photosensitivesensor, such as a CMOS or CCD image sensor, for use in imagingapplications. In some embodiments, the sensor component 507 may alsoinclude an accelerometer sensor, a gyroscope sensor, a magnetic sensor,a pressure sensor, a temperature sensor, a photoelectric sensor or a GPSsensor.

The communication component 508 is configured to facilitatecommunication, wired or wirelessly, between the electronic device 500and other apparatus. The electronic device 500 may access a wirelessnetwork based on a communication standard, such as WiFi, 2G, or 3G, 4G,or a combination thereof. In one exemplary embodiment, the communicationcomponent 508 receives a broadcast signal or broadcast associatedinformation from an external broadcast management system via a broadcastchannel. In one exemplary embodiment, the communication component 508further includes a near field communication (NFC) module to facilitateshort-range communications. In some embodiments, the communicationcomponent 508 may be implemented based on a radio frequencyidentification (RFID) technology, an infrared data association (IrDA)technology, an ultra-wideband (UWB) technology, a Bluetooth (BT)technology, and other technologies.

In exemplary embodiments, the electronic device 500 may be implementedwith one or more application specific integrated circuits (ASICs),digital signal processors (DSPs), digital signal processing apparatuses(DSPDs), programmable logic apparatuses (PLDs), field programmable gatearrays (FPGAs), controllers, micro-controllers, microprocessors, orother electronic components, for performing the above described methods.

The above-described apparatus embodiments are only illustrative. Theunits illustrated as separate components may be or may not be separatedphysically, the component illustrated as a unit may be or may not be aphysical unit. i.e., may be located at one location, or may bedistributed into multiple network units. A part or all of the modulesmay be selected to achieve the purpose of the solution in the presentdisclosure according to actual requirements. The person skilled in theart can understand and implement the present disclosure without payinginventive labor.

Corresponding to the foregoing embodiments of the method for controllingthe brightness of the screen, the present disclosure further provides acomputer-readable storage medium having stored thereon instructionsthat, when executed by the processor 509, cause the electronic device500 to perform the method for controlling the brightness of the screen,including: detecting whether a photosensitive sensor is blocked when achange in light intensity is detected; and maintaining currentbrightness of the screen when it is detected that the photosensor isblocked.

The present disclosure may take the form of a computer program productembodied on one or more storage media (including, but not limited to, adisk storage, a CD-ROM, an optical storage, etc.) containing programcodes. The computer-readable storage media includes both permanent andnon-persistent, removable and non-removable media, and informationstorage may be implemented by any method or technology. The informationmay be computer-readable instructions, data structures, modules ofprograms, or other data. Examples of the computer storage media include,but are not limited to, a phase change memory (PRAM), a static randomaccess memory (SRAM), a dynamic random access memory (DRAM), other typesof random access memory (RAM), read only memory, (ROM), electricallyerasable programmable read only memory (EEPROM), flash memory or othermemory technology, a compact disk read only memory (CD-ROM), a digitalversatile disk (DVD) or other optical storage, and magnetic tapecartridges, and magnetic tape storage or other magnetic storage devicesor any other non-transportable media may be used to store informationthat may be accessed by a computing device.

Other embodiments of the present disclosure will be apparent to thoseskilled in the art from consideration of the specification and practiceof the disclosure disclosed here. The present disclosure is intended tocover any variations, uses, or adaptations of the present disclosurefollowing the general principles thereof and including such departuresfrom the present disclosure as come within known or customary practicein the art. It is intended that the specification and examples beconsidered as exemplary only, with a true scope and spirit of thedisclosure being indicated by the following claims.

It will be appreciated that the present disclosure is not limited to theexact construction that has been described above and illustrated in theaccompanying drawings, and that various modifications and changes may bemade without departing from the scope thereof. It is intended that thescope of the disclosure only be limited by the appended claims.

What is claimed is:
 1. A method for controlling a brightness of ascreen, comprising: detecting whether a photosensitive sensor is blockedwhen a change in light intensity is detected; and maintaining a currentbrightness of the screen when it is detected that the photosensitivesensor is blocked.
 2. The method according to claim 1, wherein thedetecting whether the photosensitive sensor is blocked comprises:detecting whether the screen is in a landscape state; detecting whethera touch operation is performed on a first area and a second area of thescreen, wherein the first area is adjacent to the photosensitive sensor,and the second area is an area other than the first area on the screen;and when the screen is in the landscape state and the touch operation isperformed on the first area and the second area, determining that thephotosensitive sensor is blocked.
 3. The method according to claim 2,wherein before determining that the photosensitive sensor is blocked,the method further comprises: detecting report rates of the touchoperation for the first area and the second area; comparing the reportrate of the first area with a preset first report threshold, andcomparing the report rate of the second area with a preset second reportthreshold; and determining whether the photosensitive sensor is blockedbased on comparison results.
 4. The method according to claim 2, whereinbefore determining that the photosensitive sensor is blocked, the methodfurther comprises: detecting, by a distance sensor, whether an objectexists within a preset distance threshold, wherein the distance sensoris disposed adjacent to the photosensitive sensor; and determiningwhether the photosensitive sensor is blocked according to a detectionresult.
 5. The method according to claim 2, wherein the detectingwhether the photosensitive sensor is blocked further comprises: when thescreen is in the landscape state and there is no touch operation on thefirst area and the second area, detecting, by a distance sensor, whetherthere is an object within a preset distance threshold, wherein thedistance sensor is disposed adjacent to the photosensitive sensor; anddetermining whether the photosensitive sensor is blocked according to adetection result.
 6. The method according to claim 1, wherein thedetecting whether the photosensitive sensor is blocked comprises:detecting whether the screen is in a landscape state; detecting, by adistance sensor, whether an object exists within a preset distancethreshold, wherein the distance sensor is disposed adjacent to thephotosensitive sensor; and determining whether the photosensitive sensoris blocked according to a detection result.
 7. The method according toclaim 2, wherein the landscape state of the screen is detected by agravity sensor.
 8. The method according to claim 1, wherein when it isdetected that the photosensitive sensor is blocked, the method furthercomprises: updating a first adjustment threshold to a second adjustmentthreshold, wherein the second adjustment threshold is greater than thefirst adjustment threshold, and the first adjustment threshold or thesecond adjustment threshold is configured to trigger an event ofautomatically adjusting the brightness of the screen.
 9. The methodaccording to claim 1, further comprising: when it is detected that thephotosensitive sensor is unblocked, adjusting the brightness of thescreen according to a current light intensity parameter.
 10. The methodaccording to claim 9, wherein before adjusting the brightness of thescreen according to the current light intensity parameter, the methodfurther comprises: displaying a first control and a second control on acurrent interface of the screen, wherein the first control is configuredto trigger an event of automatically adjusting the brightness of thescreen, and the second control is configured to trigger an event ofcanceling the automatic adjustment of the brightness of the screen; andbased on a currently triggered control, determining whether to adjustthe brightness of the screen according to the current light intensityparameter.
 11. An electronic device, comprising: a processor; a memoryfor storing instructions executable by the processor; and a screen;wherein the processor is configured to: detect whether a photosensitivesensor is blocked when a change in light intensity is detected; andmaintain a current brightness of the screen when it is detected that thephotosensitive sensor is blocked.
 12. The electronic device according toclaim 11, wherein in detecting whether the photosensitive sensor isblocked, the processor is further configured to: detect whether thescreen is in a landscape state; detect whether a touch operation isperformed on a first area and a second area of the screen, wherein thefirst area is adjacent to the photosensitive sensor, and the second areais an area other than the first area on the screen; and when the screenis in the landscape state and the touch operation is performed on thefirst area and the second area, determine that the photosensitive sensoris blocked.
 13. The electronic device according to claim 12, whereinbefore determining that the photosensitive sensor is blocked, theprocessor is further configured to: detect report rates of the touchoperation for the first area and the second area; compare the reportrate of the first area with a preset first report threshold, and comparethe report rate of the second area with a preset second reportthreshold; and determine whether the photosensitive sensor is blockedbased on comparison results.
 14. The electronic device according toclaim 12, wherein before determining that the photosensitive sensor isblocked, the processor is further configured to: detect, by a distancesensor, whether an object exists within a preset distance threshold,wherein the distance sensor is disposed adjacent to the photosensitivesensor; and determine whether the photosensitive sensor is blockedaccording to a detection result.
 15. The electronic device according toclaim 12, wherein in detecting whether the photosensitive sensor isblocked, the processor is further configured to: when the screen is inthe landscape state and there is no touch operation on the first areaand the second area, detect, by a distance sensor, whether there is anobject within a preset distance threshold, wherein the distance sensoris disposed adjacent to the photosensitive sensor; and determine whetherthe photosensitive sensor is blocked according to a detection result.16. The electronic device according to claim 11, wherein in detectingwhether the photosensitive sensor is blocked, the processor is furtherconfigured to: detect whether the screen is in a landscape state;detect, by a distance sensor, whether an object exists within a presetdistance threshold, wherein the distance sensor is disposed adjacent tothe photosensitive sensor; and determine whether the photosensitivesensor is blocked according to a detection result.
 17. The electronicdevice according to claim 12, wherein the landscape state of the screenis detected by a gravity sensor.
 18. The electronic device according toclaim 11, wherein when it is detected that the photosensitive sensor isblocked, the processor is further configured to: update a firstadjustment threshold to a second adjustment threshold, wherein thesecond adjustment threshold is greater than the first adjustmentthreshold, and the first adjustment threshold or the second adjustmentthreshold is configured to trigger an event of automatically adjustingthe brightness of the screen.
 19. The electronic device according toclaim 11, wherein the processor is further configured to: when it isdetected that the photosensitive sensor is unblocked, adjust thebrightness of the screen according to a current light intensityparameter.
 20. A computer-readable storage medium having stored thereoninstructions that, when executed by a processor of a device, cause thedevice to perform a method for controlling a brightness of a screen, themethod comprising: detecting whether a photosensitive sensor is blockedwhen a change in light intensity is detected; and maintaining a currentbrightness of the screen when it is detected that the photosensitivesensor is blocked.